package com.mapper;

import com.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    void insertUser(User user);
    void deleteUserById(Integer id);
    void updateUser(User user);
    User selectUserById(Integer id);
    User selectUserByName(String name);
    User selectUserByEmail(String email);
    List<User> selectUser();
    List<User> selectPageUser(@Param("pageNum")Integer pageNum,
                              @Param("pageSize")Integer pageSize,
                              @Param("query") String query,
                              @Param("value") String value);
}
